package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.Sound;

public interface SoundApi {
    /**
     * 添加数据到mongoDB
     *
     * @param sound
     * @return ObjectId.toHexString
     */
    String addSound(Sound sound);

    /**
     * 查询mongo中是否存在
     * @param loginUserId
     * @return
     */
    Sound findSoundByUserId(Long loginUserId);

    /**
     * 修改数据
     * @param sound
     */
    void updateSound(Sound sound);
}
